<layout name='layout' />

<div class="admin-main">
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
		<legend>添加</legend>
	</fieldset>

	<form id="ajaxForm" class="layui-form" method="post" action="<{:U('Chexing/addcar')}>">
		<div class="layui-form-item">
			<label class="layui-form-label">车型</label>
			<div class="layui-input-block">
				<input type="text" name="name" lay-verify="required" class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">发动机</label>
			<div class="layui-input-inline">
				<input type="text" name="fadongji" id="fadongji" class="layui-input" lay-verify="required"/>	
			</div>

			<label class="layui-form-label">底盘</label>
			<div class="layui-input-inline">
				<input type="text" name="dipan" id="dipan" class="layui-input" />	
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">CC</label>
			<div class="layui-input-inline">
				<input type="text" name="cc" id="cc" class="layui-input" />	
			</div>

			<label class="layui-form-label">KW</label>
			<div class="layui-input-inline">
				<input type="text" name="kw" id="kw" class="layui-input" />	
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">类型</label>
			<div class="layui-input-inline">
				<input type="text" name="type" id="type" class="layui-input" />	
			</div>
	
			<label class="layui-form-label">缸数</label>
			<div class="layui-input-inline">
				<input type="text" name="gangshu" id="gangshu" class="layui-input" />	
			</div>

			<label class="layui-form-label">年款</label>
			<div class="layui-input-inline">
				<input type="text" name="year" id="year" class="layui-input" />	
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
			</div>
		</div>
		<input type="hidden" name="brandID" value="<{$chexing.brandID}>">
		<input type="hidden" name="chexingID" value="<{$chexing.id}>">
	</form>
</div>